<template>
   <div>
     <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/start' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>排行榜</el-breadcrumb-item>
        <el-breadcrumb-item>活跃度top10</el-breadcrumb-item></el-breadcrumb>
    <el-table :data="active" border style="width: 100%;height:450px;overflow:auto;">
    <el-table-column type="index"></el-table-column>
    <el-table-column label="用户名称" prop="name" width="150">
    </el-table-column>
    <el-table-column label="简介/微博认证" prop="weibo" width="300">
    </el-table-column>
    <el-table-column label="活跃度" prop="weibos" width="200">
    </el-table-column>
      <el-table-column label="用户地址" width="400" show-overflow-tooltip>
  <template slot-scope="scope">
    <a :href="scope.row.url" target="_blank" class="buttonText">微博主页</a>
  </template>
    </el-table-column>
    </el-table></div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'Active',
  data () {
    return {
      active:[]

    }
  },
  methods: {
    getActive () {
      const path = `http://127.0.0.1:5000/active`
      axios.get(path)
        .then(response => {
          // alert(response.data.config)
          this.active = response.data.active
        })
        .catch(error => {
          console.log(error)
        })
    }
  },

  created () {
    this.getActive()
  }
}
</script>

<style>

</style>
